home *** CD-ROM | disk | FTP | other *** search
- global gMovieSprite, gMovieDuration, gWhichCamera, gAutomated, gStartTime, gStartTime1, gStartTime2, gStopTime, gStopTime1, gStopTime2, gAutoInUse
-
- on mouseDown
- set whichSprite to the clickOn
- set whichCastName to the name of cast the castNum of sprite whichSprite
- if (gAutoInUse = 1) or (whichCastName contains "off") then
- exit
- end if
- if legalButton(whichSprite) then
- if (gAutomated = 0) or developersKey() then
- if gWhichCamera = "A" then
- set oldMovieRate to the movieRate of sprite gMovieSprite
- set the movieRate of sprite gMovieSprite to 0
- updateStage()
- set gWhichCamera to "B"
- set gStartTime to gStartTime2
- set gStopTime to gStopTime2
- updateCamera()
- set timeCodeOffset to gStartTime2 + (the movieTime of sprite gMovieSprite - gStartTime1)
- storeStopTime(the movieTime of sprite gMovieSprite)
- storeStartTime(timeCodeOffset)
- set the movieTime of sprite gMovieSprite to timeCodeOffset
- updateStage()
- set the movieRate of sprite gMovieSprite to oldMovieRate
- updateStage()
- end if
- go(the frame)
- end if
- end if
- end
-